package DisizhouZuoye;

public class Score {
    //创建对应属性
    private  Integer sid;
    private  String sub;
    private  Float score;
    //无参构造
    public Score() {
    }
    //有参构造
    public Score(Integer sid, String sub, Float score) {
        this.sid = sid;
        this.sub = sub;
        this.score = score;
    }

    /**
     * 获取
     * @return sid
     */
    public Integer getSid() {
        return sid;
    }

    /**
     * 设置
     * @param sid
     */
    public void setSid(Integer sid) {
        this.sid = sid;
    }

    /**
     * 获取
     * @return sub
     */
    public String getSub() {
        return sub;
    }

    /**
     * 设置
     * @param sub
     */
    public void setSub(String sub) {
        this.sub = sub;
    }

    /**
     * 获取
     * @return score
     */
    public Float getScore() {
        return score;
    }

    /**
     * 设置
     * @param score
     */
    public void setScore(Float score) {
        this.score = score;
    }
    //输出全部属性信息的方法
    public String toString() {
        return "学号：" + sid + ", 科目:" + sub + ", 成绩:" + score + ",";
    }
}
